#import "AppController.h"
#import "DPNameServer.h"

@implementation AppController

- (void)awakeFromNib {
	// Register a name for our window
	[DPNameServer registerName:@"DPMainWindow"
					withObject:window];
	
	// We're good to go
	DPNotifyTestingPreparedness();
}

- (void)windowWillClose:(NSNotification *)aNotification {
	// Make sure we don't hold a deallocated window for this name
	[DPNameServer unregisterName:@"DPMainWindow"];
}

@end
